package cn.stylefeng.guns.czlm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Author: LiJiaJun
 * @Date: 19-4-29 上午 10:29
 * @Version 1.0
 * 商品列表
 */
@TableName("tb_product")
public class Lists {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /**
     * 创建时间
     */
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField(value = "modifyDate", fill = FieldFill.UPDATE)
    private Date modifyDate;

    /**
     * 商品名称
     */
    @TableField("name")
    private String name;

    /**
     * 简介
     */
    @TableField("caption")
    private String caption;

    /**
     * 缩略图路径
     */
    @TableField("thumbnail")
    private String thumbnail;

    /**
     * 商品html页面
     */
    @TableField("introduction")
    private String introduction;

    /**
     * 产品类别id
     */
    @TableField("productCategoryId")
    private Integer productCategoryId;

    /**
     * 商品编号
     */
    @TableField("sn")
    private String sn;

    /**
     * 销量
     */
    @TableField("sales")
    private Integer sales;

    /**
     * 是否上架  0下架，1上架
     */
    @TableField("isMarketable")
    private Integer isMarketable;

    /**
     * 现价
     */
    @TableField("price")
    private double price;

    /**
     * 原价市场价
     */
    @TableField("marketPrice")
    private double marketPrice;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    /**
     * json字符串，产品属性值
     */
    @TableField("parameterValue")
    private String parameterValue;

    /**
     * 类别数目
     */
    @TableField("sortNum")
    private Integer sortNum;

    /**
     * 是否推荐 0未推荐，1推荐
     */
    @TableField("isRecommend")
    private Integer isRecommend;

    /**
     * 删除标记 0未删除，1删除
     */
    @TableField("active")
    private Integer active;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Integer productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getIsMarketable() {
        return isMarketable;
    }

    public void setIsMarketable(Integer isMarketable) {
        this.isMarketable = isMarketable;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getParameterValue() {
        return parameterValue;
    }

    public void setParameterValue(String parameterValue) {
        this.parameterValue = parameterValue;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return "Lists{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                ", name='" + name + '\'' +
                ", caption='" + caption + '\'' +
                ", thumbnail='" + thumbnail + '\'' +
                ", introduction='" + introduction + '\'' +
                ", productCategoryId=" + productCategoryId +
                ", sn='" + sn + '\'' +
                ", sales=" + sales +
                ", isMarketable=" + isMarketable +
                ", price=" + price +
                ", marketPrice=" + marketPrice +
                ", stock=" + stock +
                ", parameterValue='" + parameterValue + '\'' +
                ", sortNum=" + sortNum +
                ", isRecommend=" + isRecommend +
                ", active=" + active +
                '}';
    }
}
